﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace DAL.Service.admin
{
    public interface ISectionsService : IBaseService
    {
        /// <summary>
        /// 读取栏目列表
        /// </summary>
        /// <returns></returns>
        IList getList();

        int getCount(object id);

        /// <summary>
        /// 读取子栏目列表
        /// </summary>
        /// <param name="id">父栏目id</param>
        /// <returns></returns>
        IList getListByPId(int id);

        /// <summary>
        /// 读取栏目列表
        /// </summary>
        /// <returns></returns>
        IList getDetailById(int id);

        /// <summary>
        /// 删除栏目
        /// </summary>
        /// <returns></returns>
        int deleteFromSections(int id);

        /// <summary>
        /// 检测编码唯一性
        /// </summary>
        /// <returns></returns>
        int checkcode(string code, int id);

        IList getSectionById(string id);

        IList getParentList();

        IList getNameByCode(string code);
    }
}
